商家明细单号查询明细单
普通直连商户可以通过该接口查询单笔品牌红包明细单。建议商户发放品牌红包后,间隔1分钟以上再调用该接口查单,避免查询失败
请求参数 | 类型 | 描述 |
---|---|---|
batch_no | string | 微信支付品牌红包批次单号 |
detail_no | string | 商家品牌红包明细单号 |
php
$instance->v3->fundApp->brandRedpacket->brandMerchantBatches->_batch_no_->details->_detail_no_->getAsync([
'batch_no' => '1030000071100999991182020050700019480001',
'detail_no' => '1040000071100999991182020050700019500100',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/fund-app/brand-redpacket/brand-merchant-batches/{batch_no}/details/{detail_no}')->getAsync([
'batch_no' => '1030000071100999991182020050700019480001',
'detail_no' => '1040000071100999991182020050700019500100',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/fund-app/brand-redpacket/brand-merchant-batches/{batch_no}/details/{detail_no}']->getAsync([
'batch_no' => '1030000071100999991182020050700019480001',
'detail_no' => '1040000071100999991182020050700019500100',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->fundApp->brandRedpacket->brandMerchantBatches->_batch_no_->details->_detail_no_->get([
'batch_no' => '1030000071100999991182020050700019480001',
'detail_no' => '1040000071100999991182020050700019500100',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/fund-app/brand-redpacket/brand-merchant-batches/{batch_no}/details/{detail_no}')->get([
'batch_no' => '1030000071100999991182020050700019480001',
'detail_no' => '1040000071100999991182020050700019500100',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/fund-app/brand-redpacket/brand-merchant-batches/{batch_no}/details/{detail_no}']->get([
'batch_no' => '1030000071100999991182020050700019480001',
'detail_no' => '1040000071100999991182020050700019500100',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
brand_mchid | string | 品牌主商户号 |
out_batch_no | string | 商家品牌红包批次单号 |
batch_no | string | 微信支付品牌红包批次单号 |
out_detail_no | string | 商家品牌红包明细单号 |
detail_no | string | 微信支付品牌红包明细单号 |
detail_state | string | 品牌红包明细单状态DETAIL_INIT | DETAIL_WAIT_PAY | DETAIL_PROCESSING | DETAIL_SUCCESS | DETAIL_FAIL 枚举值之一 |
amount | number | 红包金额 |
remark | string | 红包备注 |
fail_reason | string | 失败原因ACCOUNT_FROZEN | REAL_NAME_CHECK_FAIL | NAME_NOT_CORRECT | OPENID_INVALID | TRANSFER_QUOTA_EXCEED | DAY_RECEIVED_QUOTA_EXCEED | DAY_RECEIVED_COUNT_EXCEED | PRODUCT_AUTH_CHECK_FAIL | OVERDUE_CLOSE | ACCOUNT_NOT_EXIST | TRANSFER_RISK | USER_ACCOUNT_LIMIT | FAIL_REASON_UNKNOWN | PAYER_ACCOUNT_ABNORMAL | PAYEE_ACCOUNT_ABNORMAL | USER_RECEIVE_OVERDUE | REMARK_NOT_CORRECT | MERCHANT_REJECT | MERCHANT_NOT_CONFIRM | BLOCK_B2C_USERLIMITAMOUNT_BSRULE_MONTH 枚举值之一 |
openid | string | 接收红包用户OpenID |
user_name | string | 接收红包用户姓名 |
initiate_time | string | 品牌红包发起时间 |
update_time | string | 品牌红包更新时间 |
brand_id | number | 品牌ID |
template_id | string | 品牌红包模板ID |
brand_appid | string | 品牌AppID |
参阅 官方文档